package com.rbac.web.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author gengaoliu
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "登陆请求参数")
public class LoginReq {
  @Schema(description = "用户名")
  @NotNull(message = "用户名不可为空")
  private String username;

  @Schema(description = "密码")
  @NotNull(message = "密码不可为空")
  private String password;

  @Schema(description = "验证码")
  @NotNull(message = "验证码不可为空")
  private String imgCode;
}
